package de.widas.gaesf.dataobject;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;

/**
 * Created on: 24.09.2009, 15:43:00<br/>
 * Copyright 2009 by WidasConcepts GmbH<br/>
 *
 * @author Meykel Gruel
 * 
 */
@Entity
public class Eintrag implements Serializable {

	private static final long serialVersionUID = 7382173057942391989L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Key id;
	
	private String text;
	
	private String autor;
	
	public Eintrag() {
		text = "";
		autor = "";
	}

	/**
	 * @return the id
	 */
	public Key getId() {
		return id;
	}

	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}

	/**
	 * @return the autor
	 */
	public String getAutor() {
		return autor;
	}

	/**
	 * @param pText the text to set
	 */
	public void setText(String pText) {
		text = pText;
	}

	/**
	 * @param pAutor the autor to set
	 */
	public void setAutor(String pAutor) {
		autor = pAutor;
	}
}
